<?php
header('content-type:text/html;charset=utf-8');
// 身份验证
session_start();
if(!isset($_SESSION['admin'])){
	header('Refresh:1;url=back_login.html');
	echo '用户还没登录!';
	die();
}


// 获取数据库里的帖子信息
include_once('../dbtools.inc.php');
include_once '../config.php';





$link=create_connection();
// $sql="select * from order_tj";
$sql="SELECT * FROM goods WHERE state='1' ";
// $sql2="select * from users";
$result_sql=mysqli_query($config,$sql);
$row_sql=mysqli_fetch_array($result_sql);
$article=db_getAll($link,'school',$sql);



// 卖家信息
$query="SELECT * FROM users WHERE userid='".$row_sql['userid']."'";
$result=mysqli_query($config,$query);
$row=mysqli_fetch_array($result);
// echo $row_email['uemail'];
// $user_email=$row_email['buyerid'];
// var_dump($query);


// 加载模板文件
include_once('back_shenhe.html');
?>